import request from '@/utils/request'

export function getPageList(params) {
  return request({
    url: 'api/product/back/prop/page',
    method: 'get',
    params
  })
}
export function getPropList() {
  return request({
    url: 'api/product/back/prop/list',
    method: 'get'
  })
}
export function getById(id) {
  return request({
    url: 'api/product/back/prop/listPropValue/' + id,
    method: 'get'
  })
}
export function saveProp(data) {
  return request({
    url: 'api/product/back/prop',
    method: 'post',
    data
  })
}
export function removeById(id) {
  return request({
    url: 'api/product/back/prop/' + id,
    method: 'delete',
    data: id
  })
}
export default { getPageList, getPropList, getById, saveProp, removeById }
